package com.hz.filesystem.dao;

import com.hz.filesystem.entity.HzFileEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author txw_cyl
 * @email sunlightcs@gmail.com
 * @date 2022-04-22 20:37:21
 */
@Mapper
public interface HzFileDao extends BaseMapper<HzFileEntity> {

    String getDeleteFilesIds(long fid, long userId);

    void deletebyfids(String ids);

    void addfiledowncount(long fid);

    List<HzFileEntity> queryallverifyfiles(long userId, int curPage, int pageSize);

    List<HzFileEntity> querypublicfilesbyfid(long upperFid, long userId);

    List<HzFileEntity> querypublicfilesbydowncount(int curPage, int pageSize);

    List<HzFileEntity> queryfilesbyfid(int curPage, int pageSize, long upperFid);

    Integer querypublicfilesnum();

    Integer queryfilesnum(long upperFid);

    List<HzFileEntity> queryfilesbystate(long userId, int curPage, int pageSize, int verifyState);

    Integer queryfilesbystatenum(long userId,int verifyState);

    Integer queryallverifyfilesnum(long userId);
}
